package com.igroupes.ovineherd.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.igroupes.ovineherd.entity.DataModelAttributeEntity;
import com.igroupes.ovineherd.entity.DataModelTableEntity;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface DataModelAttributeMapper extends BaseMapper<DataModelAttributeEntity> {

    DataModelTableEntity getByFieldId(@Param("fieldId") Long fieldId);

    int deleteAttribute(@Param("map") Map map);

    int order(@Param("map") Map map);
}
